package org.dev.hi.item

import android.widget.ImageView
import androidx.recyclerview.widget.RecyclerView
import org.dev.hi.R
import org.dev.hi.hiui.item.HiDataItem

/**
 * Author WenPing
 * CreateTime 2021/4/22.
 * Description:
 */
class TopBanner(data: ItemData) : HiDataItem<ItemData, RecyclerView.ViewHolder>(data) {
    override fun onBindData(vh: RecyclerView.ViewHolder, position: Int) {
        var imageView = vh.itemView.findViewById<ImageView>(R.id.item_image)
        imageView.setImageResource(R.drawable.fire)
    }

    override fun getItemLayoutRes(): Int = R.layout.layout_list_item_banner

}